Set the Compilation Options

Click the icon to open the PLC options dialog box.

  • Select the Debug option to use Step-By-Step Debugging during simulation or online testing.
  • Select the Release option to if step-by-step debugging is not required and to give highest performance to the application.

When additional statements are incorporated in the code (e.g., trace outputs), you must select the Debug compiling mode so that they are taken into consideration (in RELEASE mode, those statements are not included).

For more information, see:

Code Generation

The code compilation options are: Normal and Optimized.

Normal

  • Normal code:
    • Allows the use of all PLC features in the KAS-IDE and Runtime.
    • Generation creates P-code and executes inside a virtual machine.
    • Size Constraints: The P-code is smaller than the same program translated to C-code.
  • Development and Debugging: Normal code allows breakpoints, step through PLC code, and use online change.
    • Normal code is interpretedClosed (The code is read by the KAS Runtime engine that then determines the instructions to run) so the interpreter can apply many additional runtime checks that would be harder to implement with Optimized code.

  • Using Normal code is recommended to take advantage of all KAS PLC features unless the controller is unable to meet performance requirements.

Optimized


  • The Optimize Code option is not available for the PCMM2G.

Optimized code generation: